package com.xy9860.order.spi;

import com.xy9860.order.fallback.OrderSpiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author xy9860
 * @Description 远程访问器
 * Copyright: Copyright (c) 2020
 * Company: Sichuan haiwujiang information technology Co., Ltd
 * @since 2020/7/1
 */
@FeignClient(name = "http://order-service.default:8080", url = "http://order-service.default:8080",fallback = OrderSpiFallback.class)
public interface OrderSpi {
    /**
     * @param userId
     * @return
     * 下单
     */
    @GetMapping("/order")
    String order(String userId);
}
